<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" Inherits="CKS.FormsBasedAuthentication.EditMembershipProviders, CKS.FormsBasedAuthentication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d0c9b215512a2c5d" MasterPageFile="~/_layouts/application.master" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssap" Namespace="Microsoft.SharePoint.ApplicationPages"
    Assembly="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace= "Microsoft.SharePoint.ApplicationPages" %>

<asp:Content ID="Content1" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="PageTitle"
						Text="Manage Membership Providers"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral ID="TitleArea"
						Text="Manage Membership Providers"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
	  <wssuc:ToolBar id="onetidNavNodesTB" runat="server">
        <Template_RightButtons>
            <wssawc:EncodedLiteral ID="EncodedLiteral1" runat="server" Text="Choose the membership provider: "></wssawc:EncodedLiteral>
		    <asp:DropDownList id="ddlProviders" runat="server"  AutoPostBack="true" OnSelectedIndexChanged="ddlProviders_SelectedIndexChanged" />
		</Template_RightButtons>  
	  </wssuc:ToolBar>

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderMain" runat="server">

<TABLE border="0" width="100%" cellspacing="0" cellpadding="0" class="ms-descriptiontext">
<wssuc:InputFormSection runat="server" Title="Basic Provider Information">
	<Template_InputFormControls>
		<wssuc:InputFormControl ID="ifcProviderName" runat="server" LabelText="Provider Name:">
			<Template_Control>
			<wssawc:InputFormTextBox Enabled="false" CssClass="ms-long" maxlength="255" ID="txtProvidername" Direction="LeftToRight" Runat="server" />
			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator1" ControlToValidate="txtProvidername" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server">
			<Template_Control>
    		    <wssawc:InputFormCheckBox ID="cbDefaultProvider" Checked="false" ToolTip="Set This Provider As The Default Membership Provider For This Web" LabelText="Default Membership Provider" runat="server" />
			</Template_Control>
		</wssuc:InputFormControl>
	</Template_InputFormControls>
</wssuc:InputFormSection>
<wssuc:InputFormSection runat="server" Title="Provider Type Information">
	<Template_InputFormControls>
		<wssuc:InputFormControl runat="server" LabelText="Use System.Web.Security.SqlMembershipProvider?">
			<Template_Control>
    		    <wssawc:InputFormCheckBox ID="cbSQLProvider" AutoPostBack="true" OnCheckedChanged="cbSQLProvider_CheckChanged" Checked="true" ToolTip="Do You Want To Use The System.Web.Security.SQLMembershipProvider?" LabelText="Yes" runat="server" />
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="OR Enter a Provider Type:">
			<Template_Control>
    		    <wssawc:InputFormTextBox Enabled="false" class="ms-long" MaxLength="255" ID="txtProviderType" Direction="LeftToRight" runat="Server" />
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator2" ControlToValidate="txtProviderType" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
	</Template_InputFormControls>
</wssuc:InputFormSection>
<wssuc:InputFormSection ID="ifsSQLProvider" runat="server" Title="SQL Membership Provider Information">
	<Template_InputFormControls>
		<wssuc:InputFormControl runat="server" LabelText="SQL Membership Provider Connection String Name:">
			<Template_Control>
			    <asp:DropDownList ID="ddlConnectionNames" runat="server"></asp:DropDownList>&nbsp;
			    <asp:HyperLink AccessKey="C" Text="Modify Connections" runat="Server" ID="lnkEditConnections" NavigateUrl="EditConnections.aspx" />
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator3" ControlToValidate="ddlConnectionNames" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl visible="false" runat="server" LabelText="SQL Membership Provider Connection String:">
			<Template_Control>
    		    <wssawc:InputFormTextBox class="ms-long" MaxLength="255" ID="txtConnectionString" Direction="LeftToRight" runat="Server" />
			</Template_Control>
		</wssuc:InputFormControl>
	</Template_InputFormControls>
</wssuc:InputFormSection>
<wssuc:InputFormSection runat="server" Title="Membership Provider Options">
	<Template_InputFormControls>
		<wssuc:InputFormControl runat="server" LabelText="Enable Users To Retrieve Their Password?">
			<Template_Control>
    		    <wssawc:InputFormCheckBox ID="cbEnablePasswordRetrieval" Checked="false" ToolTip="Enable Users To Retrieve Their Passwords" LabelText="Enabled" runat="server" />
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Enable Users To Reset Their Passwords?">
			<Template_Control>
    		    <wssawc:InputFormCheckBox ID="cbEnablePasswordReset" Checked="true" ToolTip="Enable Users To Reset Their Passwords" LabelText="Enabled" runat="server" />
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Require A Verification Question and Answer?">
			<Template_Control>
    		    <wssawc:InputFormCheckBox ID="cbRequireQuestionAnswer" Checked="true" ToolTip="Require A Verification Question and Answer?" LabelText="Required" runat="server" />
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Application Name:">
			<Template_Control>
    		    <wssawc:InputFormTextBox ID="txtApplicationName" Direction="LeftToRight" runat="server" />
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator4" ControlToValidate="txtApplicationName" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Require Each User To Have A Unique Email Address?">
			<Template_Control>
    		    <wssawc:InputFormCheckBox ID="cbRequireUniqueEmail" Checked="false" ToolTip="Require Each User To Have A Unique Email Address?" LabelText="Required" runat="server" />
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Password Format:">
			<Template_Control>
			    <wssawc:InputFormRadioButton CssClass="ms-RadioText" ID="rbClear" Checked="false" ToolTip="Passwords are not encrypted" GroupName="PasswordFormat" runat="server" LabelText="Clear" />
			    <wssawc:InputFormRadioButton CssClass="ms-RadioText" ID="rbEncrypted" Checked="false" ToolTip="Passwords are encrypted using the machineKey Element" GroupName="PasswordFormat" runat="server" LabelText="Encrypted" />
			    <wssawc:InputFormRadioButton CssClass="ms-RadioText" ID="rbHashed" Checked="true" ToolTip="Passwords are encrypted one-way using SHA1 algorithm" GroupName="PasswordFormat" runat="server" LabelText="Hashed" />
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Maximum Invalid Attempts:">
			<Template_Control>
    		    <wssawc:InputFormTextBox ID="txtMaxInvalidAttempts" Direction="LeftToRight" runat="server" />
    			<wssawc:InputFormRegularExpressionValidator ID="InputFormRegularExpressionValidator1"  ControlToValidate="txtMaxInvalidAttempts" Display="Dynamic" runat="server" ValidationExpression="\d{1}" ErrorMessage="Enter a numeric value under 10 only."/>
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator5" ControlToValidate="txtMaxInvalidAttempts" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Minimum Required Password Length:">
			<Template_Control>
    		    <wssawc:InputFormTextBox ID="txtMinRequiredPasswordLength" Direction="LeftToRight" runat="server" />
    			<wssawc:InputFormRegularExpressionValidator ID="InputFormRegularExpressionValidator2"  ControlToValidate="txtMinRequiredPasswordLength" Display="Dynamic" runat="server" ValidationExpression="\d" ErrorMessage="Enter a numeric value only."/>
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator6" ControlToValidate="txtMinRequiredPasswordLength" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Minimum Required Non-Alphanumeric Characters:">
			<Template_Control>
    		    <wssawc:InputFormTextBox ID="txtMinRequiredNonAlphaChars" Direction="LeftToRight" runat="server" />
    			<wssawc:InputFormRegularExpressionValidator ID="InputFormRegularExpressionValidator3"  ControlToValidate="txtMinRequiredNonAlphaChars" Display="Dynamic" runat="server" ValidationExpression="\d" ErrorMessage="Enter a numeric value only."/>
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator7" ControlToValidate="txtMinRequiredNonAlphaChars" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Password Attempt Window (minutes):">
			<Template_Control>
    		    <wssawc:InputFormTextBox ID="txtPasswordAttemptsWindow" Direction="LeftToRight" runat="server" />
    			<wssawc:InputFormRequiredFieldValidator ID="InputFormRequiredFieldValidator8" ControlToValidate="txtPasswordAttemptsWindow" Display="Dynamic" Runat="server"/>
			</Template_Control>
		</wssuc:InputFormControl>
		<wssuc:InputFormControl runat="server" LabelText="Password Strength Regular Expression:">
			<Template_Control>
    		    <wssawc:InputFormTextBox ID="txtPasswordStrengthRegEx" Direction="LeftToRight" runat="server" />
			</Template_Control>
		</wssuc:InputFormControl>
	</Template_InputFormControls>
</wssuc:InputFormSection>
	<wssuc:ButtonSection runat="server">
		<Template_Buttons>
		<asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="DeleteProvider" Text="Delete" ID="btnDelete" AccessKey="D" />
		<asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="OnSubmit" Text="<%$Resources:wss,multipages_okbutton_text%>" id="BtnOk" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
		</Template_Buttons>
	</wssuc:ButtonSection>
</TABLE>
</asp:Content>


